package com.idbk.chargestation.activity.assist;

import android.os.Bundle;
import android.webkit.WebView;

import com.idbk.chargestation.R;
import com.idbk.chargestation.base.BaseActivity;

/**
 * 
 * @author lupc
 *
 */
public class ActivityLicense extends BaseActivity {

	public final static String LICENSE_URL = "file:///android_asset/license/main.html";
	
	private WebView mWebView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_license);

		setupView();

		setupData();
	}

	private void setupView() {
		setupToolBar2();//显示标题栏
		mWebView = (WebView) findViewById(R.id.mywebview);
		if (mWebView != null) {
			mWebView.getSettings().setJavaScriptEnabled(false);
			mWebView.getSettings().setDefaultTextEncodingName("utf-8");
		}
	}

	private void setupData(){
		mWebView.loadUrl(LICENSE_URL);
	}

}
